#!/bin/bash
#其中一节点，添加用户及密码
rabbitmqctl  add_user admin admin
rabbitmqctl  set_user_tags admin administrator
rabbitmqctl add_user openstack openstack 
rabbitmqctl set_permissions openstack ".*" ".*" ".*" 
rabbitmqctl  set_user_tags openstack administrator
sleep 3
systemctl stop rabbitmq-server.service
sleep 3
systemctl start rabbitmq-server.service
netstat -antp|grep '5672'